<?php

namespace Yolo\Rpc\Annotations;

use Attribute;

/**
 * 将一个类标记为程序启动入口
 */
#[Attribute(Attribute::TARGET_CLASS)]
class AppScheme
{
    public function __construct(public string $type, public string $serviceName, public array $options = [])
    {
    }

    public function getType(): string
    {
        return $this->type;
    }

    public function getServiceName(): string
    {
        return $this->serviceName;
    }

    public function getOptions(): array
    {
        return $this->options;
    }
}
